#!/bin/bash  

url=$1
topics=$2

echo $topics
echo $url

flg=`ps -ef|grep rosbag|grep python3|wc -l`
if [ $flg == "0" ]; 
 then rosbag record $topics -o $url
fi 
